| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | "use strict"; |
||
| 59 | for(var i=0; i<mowers_lines.length; i++) { |
||
| 60 | if(i%2){ |
||
| 61 | var position = mowers_lines[i-1].split(' '); |
||
| 62 | config.mowers.push({ |
||
| 63 | pos:{x:parseInt(position[0]), y:parseInt(position[1])}, |
||
| 64 | cardinal:position[2], |
||
| 65 | instructions:mowers_lines[i].split('') |
||
| 66 | }); |
||
| 67 | } |
||
| 68 | } |
||
| 69 | return config; |
||
| 70 | } |